<?php
namespace app\admin\validate;
use think\Validate;
class Tags extends Validate{
	//栏目验证
	
    protected $rule = [
        'tagname'  =>  'require|max:10|unique:tags',
    ];
	
    protected $message  =   [
        'tagname.require' => '标签名称必须填写',
        'tagname.max' => '标签名称长度不得大于10位',
        'tagname.unique' => '标签名称不得重复',
    ];

}
